package com.JR;

import java.util.List;

public class Schedule implements com.util.interfaces.Id {
    private int Id;
    private int classId;
    private List<Course> courses;

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public List<Course> getCourses() {
        return courses;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }

    @Override
    public String toString() {
        return "Schedule{" +
                "schedulId=" + Id +
                ", classId=" + classId +
                '}';
    }
    public void showCourse(){
        System.out.println(courses.toString());
    }
}
